package lesson5_2;

public class Demo2 {
    public static void main(String[] args) throws CloneNotSupportedException {
        Car car = new Car("111111");
        Driver driver1 = new Driver("张三",20,car);
        Driver driver2 = (Driver) driver1.clone();
        driver1.getCar().setCardNum("000000");
        System.out.println(driver2.getCar().getCardNum());

        //？ 000000 0 1 ？ 0，0,0,0,0,0,0,0,0,0,0

    }
}
